package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class ValueExpressionList {

    private int beginIndex;
    private int endIndex;
    private List<ValueExpression> valueExpressionList;

    public ValueExpressionList(List<ValueExpression> valueExpressionList) {
        this.beginIndex = valueExpressionList.get(0).getBeginIndex();
        this.endIndex = valueExpressionList.get(valueExpressionList.size() - 1).getEndIndex();
        this.valueExpressionList = valueExpressionList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public int size() {
        return valueExpressionList.size();
    }

    public ValueExpression get(int index) {
        return valueExpressionList.get(index);
    }

}
